package com.ruoyi.web.controller.warning;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.warning.service.IProcessorsLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 处理器日志表 前端控制器
 * </p>
 *
 * @author chenhc
 * @since 2025-03-28
 */
@RestController
@RequestMapping("/processorsLog")
@Api(tags = "处理器日志", description = "用于处理处理器日志相关操作的控制器")
public class ProcessorsLogController {

    @Resource
    private IProcessorsLogService processorsLogService;
    @ApiOperation("获取所有内存日志")
    @GetMapping(value = "/getProcessorsLog")
    public R getProcessorsLog(String id, String startTime)
    {
        return R.ok(processorsLogService.getProcessorsLog(id,startTime));
    }
}
